package com.beiding.pojo.payload;

import com.beiding.listener.Pay;
import com.beiding.pojo.order.Order;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Payload {


    public static Payload create(String type) {

        return create().type(type);

    }
    public static Payload create() {

        return new Payload();

    }


    //操作类型
    private String type;

    //需要显示的提示信息
    private String msg;

    //如果需要操作订单则添加该字段即可
    private Order order;


    public Payload type(String type) {

        this.type = type;

        return this;

    }


    public Payload msg(String msg) {

        this.msg = msg;

        return this;

    }


    public Payload order(Order order) {

        this.order = order;

        return this;

    }



}
